package com.student.entity;

import java.util.Date;
public class Student {
	private Integer id;
	private String sname;
	private String studentNumber;
	private Date birthday;
	private int sex;
	private int polity;
	private String brief;
	private boolean isNewRecord;
	
	public boolean isNewRecord() {
		return isNewRecord;
	}

	public void setNewRecord(boolean isNewRecord) {
		this.isNewRecord = isNewRecord;
	}

	public Student() {
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getSname() {
		return sname;
	}

	public void setSname(String sname) {
		this.sname = sname;
	}

	public String getStudentNumber() {
		return studentNumber;
	}

	public void setStudentNumber(String studentNumber) {
		this.studentNumber = studentNumber;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public int getSex() {
		return sex;
	}

	public void setSex(int sex) {
		this.sex = sex;
	}

	public int getPolity() {
		return polity;
	}

	public void setPolity(int polity) {
		this.polity = polity;
	}

	public String getBrief() {
		return brief;
	}

	public void setBrief(String brief) {
		this.brief = brief;
	}

	

	public Student(String sname, String studentNumber, Date birthday, int sex, int polity, String brief,
			boolean isNewRecord) {
		super();
		this.sname = sname;
		this.studentNumber = studentNumber;
		this.birthday = birthday;
		this.sex = sex;
		this.polity = polity;
		this.brief = brief;
	}

	@Override
	public String toString() {
		return "Student [id=" + id + ", sname=" + sname + ", studentNumber=" + studentNumber + ", birthday=" + birthday
				+ ", sex=" + sex + ", polity=" + polity + ", brief=" + brief + ", isNewRecord=" + isNewRecord + "]";
	}

	public Student(Integer id, String sname, String studentNumber, Date birthday, int sex, int polity, String brief,
			boolean isNewRecord) {
		super();
		this.id = id;
		this.sname = sname;
		this.studentNumber = studentNumber;
		this.birthday = birthday;
		this.sex = sex;
		this.polity = polity;
		this.brief = brief;
		this.isNewRecord = isNewRecord;
	}

	

	
}
